package com.jnevision.appverson.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * APP版本控制
 * </p>
 *
 * @author gavin
 * @since 2019-07-21
 */
@TableName("sys_app_version")
public class AppVersion extends Model<AppVersion> {

	private static final long serialVersionUID = -1012650472959337731L;

	/**
     * APP版本ID
     */
    @TableField("id")
    private Integer id;

    /**
     * 应用名称
     */
    @TableField("app_name")
    private String appName;

    /**
     * 版本号
     */
    @TableField("ver_no")
    private String verNo;

    /**
     * app升级版本号
     */
    @TableField("app_no")
    private Integer appNo;

    /**
     * 应用URL
     */
    @TableField("app_url")
    private String appUrl;

    /**
     * 应用类型
     */
    @TableField("app_type")
    private String appType;

    /**
     * 版本说明
     */
    @TableField("ver_desception")
    private String verDesception;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime = LocalDateTime.now();

    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField("modify_time")
    private LocalDateTime modifyTime;

    /**
     * 修改人
     */
    @TableField("modify_by")
    private String modifyBy;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getVerNo() {
        return verNo;
    }

    public void setVerNo(String verNo) {
        this.verNo = verNo;
    }

    public Integer getAppNo() {
        return appNo;
    }

    public void setAppNo(Integer appNo) {
        this.appNo = appNo;
    }

    public String getAppUrl() {
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public String getVerDesception() {
        return verDesception;
    }

    public void setVerDesception(String verDesception) {
        this.verDesception = verDesception;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "AppVersion{" +
        "id=" + id +
        ", appName=" + appName +
        ", verNo=" + verNo +
        ", appNo=" + appNo +
        ", appUrl=" + appUrl +
        ", appType=" + appType +
        ", verDesception=" + verDesception +
        ", createTime=" + createTime +
        ", createBy=" + createBy +
        ", modifyTime=" + modifyTime +
        ", modifyBy=" + modifyBy +
        "}";
    }
}